package com.example.logistics_oa.controller;

import com.example.comment_oa.pojos.FiveGold;
import com.example.comment_oa.response.AjaxResponse;
import com.example.logistics_oa.service.FiveGoldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:查询五险一金的controller页面
 * @Author:李博文
 * @Date:2022/10/15 16:38
 */
@RestController
@RequestMapping("/logisticsOa")
@CrossOrigin
public class FiveGoldShowController {

    @Autowired
    FiveGoldService fiveGoldService;

    @GetMapping("/FiveShow/ShowFive")
    public AjaxResponse showFive(){
        List<FiveGold> fiveGolds = fiveGoldService.selectAll();
        return AjaxResponse.success(fiveGolds);
    }

}
